package org.fly.bean;

import org.fly.utils.code.QueryField;
import org.fly.utils.code.QueryType;

import java.util.List;

/**
 * Created by rongzhao.zhu on 2018/1/6.
 */
public class Product {
    /**
     * 主键id
     */
    @QueryField
    private String id;
    /**
     * 根类
     */
    @QueryField
    private String rootClazzId;
    /**
     * 分类id
     */
    @QueryField
    private String clazzId;
    /**
     * 产品名称
     */
    @QueryField(oper = QueryType.like)
    private String name;
    /**
     * 头图
     */
    private String image;
    /**
     * 详细说明
     *
     */
    private String content;
    /**
     * 状态
     */
    private String status;
    /**
     * 货号
     */
    private String code;
    /**
     * @see ProductAttribute
     */
    private ProductAttribute attributes;
    /**
     * 商品规格
     */
    private ProductNorm productNorm;
    /**
     * 品牌id
     */
    private String brandId;
    /**
     * 创建时间
     */
    private String unit;
    private long createTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRootClazzId() {
        return rootClazzId;
    }

    public void setRootClazzId(String rootClazzId) {
        this.rootClazzId = rootClazzId;
    }

    public String getClazzId() {
        return clazzId;
    }

    public void setClazzId(String clazzId) {
        this.clazzId = clazzId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public ProductAttribute getAttributes() {
        return attributes;
    }

    public ProductNorm getProductNorm() {
        return productNorm;
    }

    public void setProductNorm(ProductNorm productNorm) {
        this.productNorm = productNorm;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public void setAttributes(ProductAttribute attributes) {
        this.attributes = attributes;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }
}
